<?php
namespace App\Models\Common;
use Illuminate\Database\Eloquent\Model;

class WebContentImg extends Model{
    //设置表的类型和表名
    protected $table = 'web_content_img_exist';
    protected $primaryKey = 'id';
    protected $guarded = [];
    public function imgWithWebContent(){
        return $this->hasOne('App\Models\Common\WebContent','id','news_id');
    }
}